package com.base.common.base;

/**
 * @author yanjiaqiang
 * @date 2011-2-14
 * @version $Id: BooleanBuilder.java 7 2011-07-15 04:24:04Z JiaqiangYan@gmail.com $
 */
public class BooleanBuilder {

	private boolean result = true;

	public void and(boolean exp) {
		result &= exp;
	}

	public void or(boolean exp) {
		result |= exp;
	}

	public boolean value() {
		return result;
	}
}
